﻿using System;
using System.Windows.Forms;
using Volunteering.model;
using Volunteering.service;
using Volunteering.ui;

namespace Volunteering {
  internal static partial class Program {
    /// <summary>
    /// 应用程序的主入口点。
    /// </summary>
    [STAThread]
    static void Main() {
      Application.EnableVisualStyles();
      Application.SetCompatibleTextRenderingDefault(false);

      var repository = new SpecialityRepository(LoadList());
      var service = new SpecialityService(repository);

      Application.Run(new MainWind(service));
    }
  }
}
